package com.sunny.fetch.pojo;

import java.util.ArrayList;
import java.util.List;

public class ApiMetaNameExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ApiMetaNameExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andApiIdIsNull() {
            addCriterion("api_id is null");
            return (Criteria) this;
        }

        public Criteria andApiIdIsNotNull() {
            addCriterion("api_id is not null");
            return (Criteria) this;
        }

        public Criteria andApiIdEqualTo(Long value) {
            addCriterion("api_id =", value, "apiId");
            return (Criteria) this;
        }

        public Criteria andApiIdNotEqualTo(Long value) {
            addCriterion("api_id <>", value, "apiId");
            return (Criteria) this;
        }

        public Criteria andApiIdGreaterThan(Long value) {
            addCriterion("api_id >", value, "apiId");
            return (Criteria) this;
        }

        public Criteria andApiIdGreaterThanOrEqualTo(Long value) {
            addCriterion("api_id >=", value, "apiId");
            return (Criteria) this;
        }

        public Criteria andApiIdLessThan(Long value) {
            addCriterion("api_id <", value, "apiId");
            return (Criteria) this;
        }

        public Criteria andApiIdLessThanOrEqualTo(Long value) {
            addCriterion("api_id <=", value, "apiId");
            return (Criteria) this;
        }

        public Criteria andApiIdIn(List<Long> values) {
            addCriterion("api_id in", values, "apiId");
            return (Criteria) this;
        }

        public Criteria andApiIdNotIn(List<Long> values) {
            addCriterion("api_id not in", values, "apiId");
            return (Criteria) this;
        }

        public Criteria andApiIdBetween(Long value1, Long value2) {
            addCriterion("api_id between", value1, value2, "apiId");
            return (Criteria) this;
        }

        public Criteria andApiIdNotBetween(Long value1, Long value2) {
            addCriterion("api_id not between", value1, value2, "apiId");
            return (Criteria) this;
        }

        public Criteria andApiCodeIsNull() {
            addCriterion("api_code is null");
            return (Criteria) this;
        }

        public Criteria andApiCodeIsNotNull() {
            addCriterion("api_code is not null");
            return (Criteria) this;
        }

        public Criteria andApiCodeEqualTo(String value) {
            addCriterion("api_code =", value, "apiCode");
            return (Criteria) this;
        }

        public Criteria andApiCodeNotEqualTo(String value) {
            addCriterion("api_code <>", value, "apiCode");
            return (Criteria) this;
        }

        public Criteria andApiCodeGreaterThan(String value) {
            addCriterion("api_code >", value, "apiCode");
            return (Criteria) this;
        }

        public Criteria andApiCodeGreaterThanOrEqualTo(String value) {
            addCriterion("api_code >=", value, "apiCode");
            return (Criteria) this;
        }

        public Criteria andApiCodeLessThan(String value) {
            addCriterion("api_code <", value, "apiCode");
            return (Criteria) this;
        }

        public Criteria andApiCodeLessThanOrEqualTo(String value) {
            addCriterion("api_code <=", value, "apiCode");
            return (Criteria) this;
        }

        public Criteria andApiCodeLike(String value) {
            addCriterion("api_code like", value, "apiCode");
            return (Criteria) this;
        }

        public Criteria andApiCodeNotLike(String value) {
            addCriterion("api_code not like", value, "apiCode");
            return (Criteria) this;
        }

        public Criteria andApiCodeIn(List<String> values) {
            addCriterion("api_code in", values, "apiCode");
            return (Criteria) this;
        }

        public Criteria andApiCodeNotIn(List<String> values) {
            addCriterion("api_code not in", values, "apiCode");
            return (Criteria) this;
        }

        public Criteria andApiCodeBetween(String value1, String value2) {
            addCriterion("api_code between", value1, value2, "apiCode");
            return (Criteria) this;
        }

        public Criteria andApiCodeNotBetween(String value1, String value2) {
            addCriterion("api_code not between", value1, value2, "apiCode");
            return (Criteria) this;
        }

        public Criteria andApiNameIsNull() {
            addCriterion("api_name is null");
            return (Criteria) this;
        }

        public Criteria andApiNameIsNotNull() {
            addCriterion("api_name is not null");
            return (Criteria) this;
        }

        public Criteria andApiNameEqualTo(String value) {
            addCriterion("api_name =", value, "apiName");
            return (Criteria) this;
        }

        public Criteria andApiNameNotEqualTo(String value) {
            addCriterion("api_name <>", value, "apiName");
            return (Criteria) this;
        }

        public Criteria andApiNameGreaterThan(String value) {
            addCriterion("api_name >", value, "apiName");
            return (Criteria) this;
        }

        public Criteria andApiNameGreaterThanOrEqualTo(String value) {
            addCriterion("api_name >=", value, "apiName");
            return (Criteria) this;
        }

        public Criteria andApiNameLessThan(String value) {
            addCriterion("api_name <", value, "apiName");
            return (Criteria) this;
        }

        public Criteria andApiNameLessThanOrEqualTo(String value) {
            addCriterion("api_name <=", value, "apiName");
            return (Criteria) this;
        }

        public Criteria andApiNameLike(String value) {
            addCriterion("api_name like", value, "apiName");
            return (Criteria) this;
        }

        public Criteria andApiNameNotLike(String value) {
            addCriterion("api_name not like", value, "apiName");
            return (Criteria) this;
        }

        public Criteria andApiNameIn(List<String> values) {
            addCriterion("api_name in", values, "apiName");
            return (Criteria) this;
        }

        public Criteria andApiNameNotIn(List<String> values) {
            addCriterion("api_name not in", values, "apiName");
            return (Criteria) this;
        }

        public Criteria andApiNameBetween(String value1, String value2) {
            addCriterion("api_name between", value1, value2, "apiName");
            return (Criteria) this;
        }

        public Criteria andApiNameNotBetween(String value1, String value2) {
            addCriterion("api_name not between", value1, value2, "apiName");
            return (Criteria) this;
        }

        public Criteria andApiCategoryIsNull() {
            addCriterion("api_category is null");
            return (Criteria) this;
        }

        public Criteria andApiCategoryIsNotNull() {
            addCriterion("api_category is not null");
            return (Criteria) this;
        }

        public Criteria andApiCategoryEqualTo(String value) {
            addCriterion("api_category =", value, "apiCategory");
            return (Criteria) this;
        }

        public Criteria andApiCategoryNotEqualTo(String value) {
            addCriterion("api_category <>", value, "apiCategory");
            return (Criteria) this;
        }

        public Criteria andApiCategoryGreaterThan(String value) {
            addCriterion("api_category >", value, "apiCategory");
            return (Criteria) this;
        }

        public Criteria andApiCategoryGreaterThanOrEqualTo(String value) {
            addCriterion("api_category >=", value, "apiCategory");
            return (Criteria) this;
        }

        public Criteria andApiCategoryLessThan(String value) {
            addCriterion("api_category <", value, "apiCategory");
            return (Criteria) this;
        }

        public Criteria andApiCategoryLessThanOrEqualTo(String value) {
            addCriterion("api_category <=", value, "apiCategory");
            return (Criteria) this;
        }

        public Criteria andApiCategoryLike(String value) {
            addCriterion("api_category like", value, "apiCategory");
            return (Criteria) this;
        }

        public Criteria andApiCategoryNotLike(String value) {
            addCriterion("api_category not like", value, "apiCategory");
            return (Criteria) this;
        }

        public Criteria andApiCategoryIn(List<String> values) {
            addCriterion("api_category in", values, "apiCategory");
            return (Criteria) this;
        }

        public Criteria andApiCategoryNotIn(List<String> values) {
            addCriterion("api_category not in", values, "apiCategory");
            return (Criteria) this;
        }

        public Criteria andApiCategoryBetween(String value1, String value2) {
            addCriterion("api_category between", value1, value2, "apiCategory");
            return (Criteria) this;
        }

        public Criteria andApiCategoryNotBetween(String value1, String value2) {
            addCriterion("api_category not between", value1, value2, "apiCategory");
            return (Criteria) this;
        }

        public Criteria andApiCommentIsNull() {
            addCriterion("api_comment is null");
            return (Criteria) this;
        }

        public Criteria andApiCommentIsNotNull() {
            addCriterion("api_comment is not null");
            return (Criteria) this;
        }

        public Criteria andApiCommentEqualTo(String value) {
            addCriterion("api_comment =", value, "apiComment");
            return (Criteria) this;
        }

        public Criteria andApiCommentNotEqualTo(String value) {
            addCriterion("api_comment <>", value, "apiComment");
            return (Criteria) this;
        }

        public Criteria andApiCommentGreaterThan(String value) {
            addCriterion("api_comment >", value, "apiComment");
            return (Criteria) this;
        }

        public Criteria andApiCommentGreaterThanOrEqualTo(String value) {
            addCriterion("api_comment >=", value, "apiComment");
            return (Criteria) this;
        }

        public Criteria andApiCommentLessThan(String value) {
            addCriterion("api_comment <", value, "apiComment");
            return (Criteria) this;
        }

        public Criteria andApiCommentLessThanOrEqualTo(String value) {
            addCriterion("api_comment <=", value, "apiComment");
            return (Criteria) this;
        }

        public Criteria andApiCommentLike(String value) {
            addCriterion("api_comment like", value, "apiComment");
            return (Criteria) this;
        }

        public Criteria andApiCommentNotLike(String value) {
            addCriterion("api_comment not like", value, "apiComment");
            return (Criteria) this;
        }

        public Criteria andApiCommentIn(List<String> values) {
            addCriterion("api_comment in", values, "apiComment");
            return (Criteria) this;
        }

        public Criteria andApiCommentNotIn(List<String> values) {
            addCriterion("api_comment not in", values, "apiComment");
            return (Criteria) this;
        }

        public Criteria andApiCommentBetween(String value1, String value2) {
            addCriterion("api_comment between", value1, value2, "apiComment");
            return (Criteria) this;
        }

        public Criteria andApiCommentNotBetween(String value1, String value2) {
            addCriterion("api_comment not between", value1, value2, "apiComment");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}